/**
	The Navigation list is used in the main view to show the list of
	menu item.	
 */
Ext.define('WEB.view.main.West' ,{
    extend: 'Ext.grid.Panel',
    alias : 'widget.mainwest',
    title : 'Navigation',
    hideHeaders: true,
    collapsible : true,
	viewConfig: {
		emptyText: '<p style="text-align:center;color:#999999;font-weight:bold;font-size:120%;margin-top:2em">No menu items found.</p>',
		stripeRows: false
	},
	bodyCls: 'atb-accountsimplelist',
    store: {
		fields: ['name'],
		autoLoad: true,
        proxy: {
        	type: 'ajax',
        	method: 'GET',
        	url: 'navigationlist',
            reader: {
                type: 'json',
                root: 'data'
            }
        }
    },
    columns: [
    	{header: 'Name', dataIndex: 'name', flex: 1, tdCls: 'atb-simplelist-item'}
   	],
    width: 250,
    initComponent: function() {
        this.callParent(arguments);
    }
});
